<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input class="form-control" name="row[id]" type="hidden" value="{$row.id|htmlentities}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}" disabled='disabled'>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" class="form-control" name="row[num]" type="number" value="{$row.num|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lever_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lever_num" class="form-control" name="row[lever_num]" type="number" value="{$row.lever_num|htmlentities}" disabled='disabled'>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('No')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-no" class="form-control" name="row[no]" type="text" value="{$row.no|htmlentities}" disabled='disabled'>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('All_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-all_no" class="form-control" name="row[all_no]" type="text" value="{$row.all_no|htmlentities}" disabled='disabled'>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}" disabled='disabled'>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-buy_price" class="form-control" step="0.01" name="row[buy_price]" type="number" value="{$row.buy_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sell_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sell_price" class="form-control" step="0.01" name="row[sell_price]" type="number" value="{$row.sell_price|htmlentities}" disabled='disabled'>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Income')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-income" class="form-control" step="0.01" name="row[income]" type="number" value="{$row.income|htmlentities}" disabled='disabled'>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Income_ratio')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-income_ratio" class="form-control" step="0.01" name="row[income_ratio]" type="number" value="{$row.income_ratio|htmlentities}" disabled='disabled'>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Earnest_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-earnest_money" class="form-control" step="0.01" name="row[earnest_money]" type="number" value="{$row.earnest_money|htmlentities}" disabled='disabled'>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in}  disabled='disabled'/> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_auto')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-is_auto" class="form-control selectpicker" name="row[is_auto]" disabled='disabled'>
                {foreach name="isAutoList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.is_auto"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-pay_type" class="form-control selectpicker" name="row[pay_type]" disabled='disabled'>
                {foreach name="payTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.pay_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-buy_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[buy_time]" type="text" value="{:$row.buy_time?datetime($row.buy_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}" disabled='disabled'>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
